<%--
  Created by IntelliJ IDEA.
  User: 许娜
  Date: 2022/1/7
  Time: 21:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>查询</title>
    <style>
        table, tr, td {
            border: 1px solid green;
        }
    </style>
</head>
<body>
<table style="margin: auto" width="50%">
    <tr>
        <td height="25" bgcolor="#66CCFF" align="right" width="31%">编号</td>
        <td height="25" bgcolor="#66CCFF" align="right" width="31%">性别</td>
        <td height="25" bgcolor="#66CCFF" align="right" width="31%">年龄</td>
    </tr>
    <c:forEach items="${list}" var="u">
        <tr>
            <td height="25" bgcolor="#FFE3BB" >${u.id}</td>
            <td height="25" bgcolor="#FFE3BB"  >${u.name}</td>
            <td height="25" bgcolor="#FFE3BB" >${u.age}</td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="3" align="center" height="25" bgcolor="#FFE3BB" width="66%">
            <a href="/user/pageUserPage.do?pageIndex=1">首页</a>
            <a href="/user/pageUserPage.do?pageIndex=${pageIndex-1}">上一页</a>
            <a href="/user/pageUserPage.do?pageIndex=${pageIndex+1}">下一页</a>
            <a href="/user/pageUserPage.do?pageIndex=${totalPages}">最后一页</a>
        </td>
    </tr>
</table>
</body>
</html>
